package com.wnnight.wys.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author rzh6230
 * 2022/8/29 9:37
 * <p>
 * 业主评价工单实体类
 */
@Getter
@Setter
@ToString
public class AppraiseVo {
    @NotNull(message = "工单id不能为空")
    @Min(value = 0, message = "工单id不能小于0")
    private Integer repairsId;
    @NotNull
    @Size(min = 1,max = 100,message = "评价字符在1-100之间")
    private String appraise;
    @NotNull
    @Min(value = 0,message = "评分不能为0")
    @Max(value = 5,message = "评分不能大于5")
    private Integer score;
}
